import request from '@/utils/request'
/**
 * 获取首页默认地址
 * @param latitude 
 * @param longitude 
 * @returns 
 */
export const GetDefaultCity = (latitude: number,longitude: number): Promise<ResponseData<RegionDetails>> => request({ url: `defaultCity?latitude=${latitude}&longitude=${longitude}`,  host:'home' })

/**
 * 获取首页城市列表
 * @returns 
 */
export const GetCitys = (): Promise<ResponseData<any>> => request({ url: 'citys',  host:'home' })

/**
 * 获取配置
 * @returns 
 */
export const GetSetting = (): Promise<ResponseData<Setting>> => request({ url: 'setting',  host:'home' })